package com.ganzalang.gmall.designpatterns.strategy;

import lombok.extern.slf4j.Slf4j;

/**
 * @description: 不使用策略模式
 * @author: ganzalang
 */
@Slf4j
public class WithoutStrategyPatternDemo {

    public static void main(String[] args) {
        int discountCaculateStatus = 1;
        if (discountCaculateStatus == 1) {
            log.info("执行A流程");
        }else if (discountCaculateStatus == 2) {
            log.info("执行B流程");
        }else {
            log.info("执行C流程");
        }
    }
}
